package com.raven.craft.code.generator.mysql.repo.mapper;

import com.raven.craft.code.generator.mysql.repo.mapper.provider.TableSqlProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.Set;

/**
 * @author raven
 * @date 2019-03-22 23:06
 */
@Mapper
public interface TableMapper {

    @SelectProvider(type = TableSqlProvider.class, method = "list")
    Set<String> list(@Param("database") String database, @Param("tablePattern") String tablePattern);
}
